Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make __precompile__(false) non-fatal for cachecompile / requires #28402

Merged
merged 2 commits into from
Aug 2, 2018

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Aug 2, 2018

replaces #28386

@ararslan ararslan added compiler:precompilation Precompilation of modules bugfix This change fixes an existing bug labels Aug 2, 2018
@ararslan ararslan mentioned this pull request Aug 2, 2018
7 tasks
push!(needs_to_be_precompiled, pkg.name)
end
if stale
printpkgstyle(ctx, :Precompiling, pkg)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkg is a PkgId but this function expects the third argument to be a string, which is why the tests are failing.

@StefanKarpinski StefanKarpinski added this to the 0.7 milestone Aug 2, 2018
And make it equivalent to `exit(125)`

Fixes #28384
@StefanKarpinski
Copy link
Member

This is the last fix blocking the next RC.

now possible, since __precompile__ is the default, and it automatically handles __precompile__(false)
@Keno
Copy link
Member

Keno commented Aug 2, 2018

Fixed and rebased.

@Keno Keno merged commit 23f774f into master Aug 2, 2018
@StefanKarpinski StefanKarpinski deleted the jn/teh/fix_noprecompile branch August 2, 2018 19:16
end
@test Base.compilecache(Base.PkgId("Baz")) == Base.PrecompilableError() # due to __precompile__(false)
@eval using Baz
@test Base.invokelatest(Baz.baz) == 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something in 1.7.0 is breaking this on some machines.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:precompilation Precompilation of modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants